package com.store.entity;

/**
 * 收获地址实体类
 */
public class Address extends BaseEntity{
    /** 收获地址id */
    private Integer aid;
    /** 归属的用户id */
    private Integer uid;
    /** 收货人姓名 */
    private String name;
    /** 收货人电话 */
    private String phone;
    /** 收获人详细地址 */
    private String address;

    public Address() {
    }

    public Address(Integer aid, Integer uid, String name, String phone, String address) {
        this.aid = aid;
        this.uid = uid;
        this.name = name;
        this.phone = phone;
        this.address = address;
    }

    public Integer getAid() {
        return aid;
    }

    public void setAid(Integer aid) {
        this.aid = aid;
    }

    public Integer getUid() {
        return uid;
    }

    public void setUid(Integer uid) {
        this.uid = uid;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    @Override
    public String toString() {
        return "Address{" +
                "aid=" + aid +
                ", uid=" + uid +
                ", name='" + name + '\'' +
                ", phone='" + phone + '\'' +
                ", address='" + address + '\'' +
                '}';
    }
}
